package com.liruo.test.spring.annotationdep.bean.id;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.config.BeanPostProcessor;

/**
 * @Author:liruo
 * @Date:2022-12-05-17:33:19
 * @Desc
 */
@Slf4j
public class InterfaceAppoint implements InitializingBean, DisposableBean {

    @Override
    public void afterPropertiesSet() throws Exception {
        log.error(getClass().getName() + "=".repeat(20) + "InitializingBean init");
    }

    @Override
    public void destroy() throws Exception {
        log.error(getClass().getName() + "=".repeat(20) + "DisposableBean destroy");
    }
}
